FROM openjdk:8-jre
MAINTAINER Mroldx
ENV PROJECT_NAME ruoyi
ENV PROJECT_HOME /usr/local/${PROJECT_NAME}
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
RUN mkdir $PROJECT_HOME && mkdir $PROJECT_HOME/logs
COPY ruoyi-admin/target/*.jar /application.jar
ENTRYPOINT ["java", "-jar","/application.jar"]
